package com.gxm.base.datatype.inter.面试题;

import org.junit.Test;

public class Inter的valueOf {


    @Test
    public void test01(){
        /**
         *     public static Integer valueOf(int var0) {
         *         return var0 >= -128 && var0 <= Integer.IntegerCache.high ? Integer.IntegerCache.cache[var0 + 128] : new Integer(var0);
         *     }
         */
        Integer f1 = 100,f2=100,f3=150,f4=150;
        System.out.println(f1 == f2);
        System.out.println(f3 == f4);
    }

    @Test
    public void test02(){
        Double d = 1.33D;
        System.out.println(d.intValue());
    }
}
